package com.cwm.test.adapter.v1.clas;

/**
 * 适配器类 将220V转化为5V
 */
public class VoltageAdapter extends Voltage220V implements IVoltage5V {

   @Override
   public int output5V() {
      //获取到220V电压
      int srcV = output220V();
      //转成 5v（降压）
      int dstV = srcV / 44 ;
      return dstV;
   }

}
